-- GENERATED SPELL FOR [Dahlia Suntouch] --


function spell0_27680(pUnit, Event) --@Banshee Curse,n/a--
pUnit:FullCastSpellOnTarget(51899,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27680', 10330, 1)
end

function spell1_27680(pUnit, Event) --@Banshee Screech,n/a--
pUnit:FullCastSpellOnTarget(51897,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27680', 4308, 1)
end

function spell2_27680(pUnit, Event) --@Banshee Wail,n/a--
pUnit:FullCastSpellOnTarget(28993,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27680', 1500, 1)
end

function Sorts_27680(pUnit, Event)
local choix_sorts_27680 = math.random(0, 2)
if choix_sorts_27680 == 0 then
pUnit:RegisterEvent('spell0_27680', 1, 1)
end
if choix_sorts_27680 == 1 then
pUnit:RegisterEvent('spell1_27680', 1, 1)
end
if choix_sorts_27680 == 2 then
pUnit:RegisterEvent('spell2_27680', 1, 1)
end
end

function mob27680_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27680', math.random(1500, 3000), 1)
end

function mob27680_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27680_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27680_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27680, 1, 'mob27680_Action')
RegisterUnitEvent(27680, 2, 'mob27680_Leave')
RegisterUnitEvent(27680, 3, 'mob27680_Kill')
RegisterUnitEvent(27680, 4, 'mob27680_Die')
